package com.ast;

import com.ir.Expr;
import com.ir.IR;

import java.util.List;

public class VarDefNode {
    String name;
    List<ConstExpNode> constExps;
    InitValNode initVal;
    Expr exp;
    public VarDefNode(String name, List<ConstExpNode> constExps, InitValNode initVal) {
        this.name = name;
        this.constExps = constExps;
        this.initVal = initVal;
    }

    public String getName() {
        return name;
    }

    public List<ConstExpNode> getConstExps() {
        return constExps;
    }

    public InitValNode getInitVal() {
        return initVal;
    }

    public void setIR(Expr exp){
        this.exp = exp;
    }
}
